package com.yamt.activity;

import android.app.Activity;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.marakana.android.yamba.clientlib.YambaClient;
import com.marakana.android.yamba.clientlib.YambaClientException;
import com.yamt.R;
import com.yamt.fragment.StatusFragment;

public class StatusActivity extends Activity {
    private static final String TAG = "[yamt] StatusActivity";

    private EditText editStatus;
    private Button buttonTweet;
    private TextView textCount;
    private int defaultTextColor;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // setContentView(R.layout.new_activity_status); // fragment is loaded statically
        if(savedInstanceState == null){
            StatusFragment statusFragment = new StatusFragment();
            getFragmentManager().beginTransaction().add(android.R.id.content, statusFragment,
                                                        statusFragment.getClass().getSimpleName()).commit();
        }
    }

}